
/*
 * @项目名称: 模板开发
 * @FilePath: /meek/src/components/drawevent.js
 * @Author: 
 * @Date: 2017-05-22T13:43:01+08:00
 * @LastEditors: guojinghao20ni@163.com
 * @LastEditTime: 2017-08-01T15:56:07+08:00
 * Copyright (c) 2018-2022 
 */

/**
 * Created by zhangyong on 2017/5/22.
 */

import BaseEvent from '../core/baseevent'

/**
 * The DrawEvent will emitted while geometrys on drawing end.
 *
 * 绘制结束时，DrawEvent将会被派发
 *
 *
 * @class drawevent
 * @extends BaseObject
 * @module component
 *
 *
 */
export default class DrawEvent extends BaseEvent {

  /**
   * @constructor
   * @param type
   * @param feature
   */
  constructor (type, feature) {

    super(type)

    /**
     * The feature being drawn
     */
    this.feature = feature
  }

}

/**
 * 定义绘制工具的事件类型
 *
 * @type {{DRAW_START: string, DRAW_END: string}}
 */
DrawEvent.EventType = {
  /**
   * Triggered upon feature draw start
   */
  DRAW_START: 'drawstart',


  /**
   * Triggered upon feature draw end
   */
  DRAW_END: 'drawend'
}
